package aps

import glory.xxd.Utils

/**
 * 批次开始-扫描批次
 */
class LotInController {

    def commentService

    def index() {

        def USERNAME =params.USERNAME?:''
        def EQPID = params.EQPID ?: ""
        def LOTID = params.LOTID ?: ""
        def body = LotIn.newInstance()
        body.setEQPID(EQPID)
        body.setLOTID(LOTID)
        body.setUSERNAME(USERNAME)
        String logUUID = Utils.getUUID();
        Header header = Header.newInstance()
        header.setMESSAGENAME("LotIn");
        header.setTRANSACTIONID(logUUID);
        def json = commentService.getJsonByObjectForTopic2Queue(logUUID, header, body)

//        print "LotIn"+json
        render json
    }
}